package com.jsu.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LostExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LostExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLostIdIsNull() {
            addCriterion("lost_id is null");
            return (Criteria) this;
        }

        public Criteria andLostIdIsNotNull() {
            addCriterion("lost_id is not null");
            return (Criteria) this;
        }

        public Criteria andLostIdEqualTo(Integer value) {
            addCriterion("lost_id =", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdNotEqualTo(Integer value) {
            addCriterion("lost_id <>", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdGreaterThan(Integer value) {
            addCriterion("lost_id >", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("lost_id >=", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdLessThan(Integer value) {
            addCriterion("lost_id <", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdLessThanOrEqualTo(Integer value) {
            addCriterion("lost_id <=", value, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdIn(List<Integer> values) {
            addCriterion("lost_id in", values, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdNotIn(List<Integer> values) {
            addCriterion("lost_id not in", values, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdBetween(Integer value1, Integer value2) {
            addCriterion("lost_id between", value1, value2, "lostId");
            return (Criteria) this;
        }

        public Criteria andLostIdNotBetween(Integer value1, Integer value2) {
            addCriterion("lost_id not between", value1, value2, "lostId");
            return (Criteria) this;
        }

        public Criteria andPersonIsNull() {
            addCriterion("person is null");
            return (Criteria) this;
        }

        public Criteria andPersonIsNotNull() {
            addCriterion("person is not null");
            return (Criteria) this;
        }

        public Criteria andPersonEqualTo(Integer value) {
            addCriterion("person =", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonNotEqualTo(Integer value) {
            addCriterion("person <>", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonGreaterThan(Integer value) {
            addCriterion("person >", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonGreaterThanOrEqualTo(Integer value) {
            addCriterion("person >=", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonLessThan(Integer value) {
            addCriterion("person <", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonLessThanOrEqualTo(Integer value) {
            addCriterion("person <=", value, "person");
            return (Criteria) this;
        }

        public Criteria andPersonIn(List<Integer> values) {
            addCriterion("person in", values, "person");
            return (Criteria) this;
        }

        public Criteria andPersonNotIn(List<Integer> values) {
            addCriterion("person not in", values, "person");
            return (Criteria) this;
        }

        public Criteria andPersonBetween(Integer value1, Integer value2) {
            addCriterion("person between", value1, value2, "person");
            return (Criteria) this;
        }

        public Criteria andPersonNotBetween(Integer value1, Integer value2) {
            addCriterion("person not between", value1, value2, "person");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNull() {
            addCriterion("nickname is null");
            return (Criteria) this;
        }

        public Criteria andNicknameIsNotNull() {
            addCriterion("nickname is not null");
            return (Criteria) this;
        }

        public Criteria andNicknameEqualTo(String value) {
            addCriterion("nickname =", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotEqualTo(String value) {
            addCriterion("nickname <>", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThan(String value) {
            addCriterion("nickname >", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameGreaterThanOrEqualTo(String value) {
            addCriterion("nickname >=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThan(String value) {
            addCriterion("nickname <", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLessThanOrEqualTo(String value) {
            addCriterion("nickname <=", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameLike(String value) {
            addCriterion("nickname like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotLike(String value) {
            addCriterion("nickname not like", value, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameIn(List<String> values) {
            addCriterion("nickname in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotIn(List<String> values) {
            addCriterion("nickname not in", values, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameBetween(String value1, String value2) {
            addCriterion("nickname between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andNicknameNotBetween(String value1, String value2) {
            addCriterion("nickname not between", value1, value2, "nickname");
            return (Criteria) this;
        }

        public Criteria andLosttimeIsNull() {
            addCriterion("losttime is null");
            return (Criteria) this;
        }

        public Criteria andLosttimeIsNotNull() {
            addCriterion("losttime is not null");
            return (Criteria) this;
        }

        public Criteria andLosttimeEqualTo(Date value) {
            addCriterion("losttime =", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeNotEqualTo(Date value) {
            addCriterion("losttime <>", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeGreaterThan(Date value) {
            addCriterion("losttime >", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("losttime >=", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeLessThan(Date value) {
            addCriterion("losttime <", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeLessThanOrEqualTo(Date value) {
            addCriterion("losttime <=", value, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeIn(List<Date> values) {
            addCriterion("losttime in", values, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeNotIn(List<Date> values) {
            addCriterion("losttime not in", values, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeBetween(Date value1, Date value2) {
            addCriterion("losttime between", value1, value2, "losttime");
            return (Criteria) this;
        }

        public Criteria andLosttimeNotBetween(Date value1, Date value2) {
            addCriterion("losttime not between", value1, value2, "losttime");
            return (Criteria) this;
        }

        public Criteria andLostareaIsNull() {
            addCriterion("lostarea is null");
            return (Criteria) this;
        }

        public Criteria andLostareaIsNotNull() {
            addCriterion("lostarea is not null");
            return (Criteria) this;
        }

        public Criteria andLostareaEqualTo(String value) {
            addCriterion("lostarea =", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaNotEqualTo(String value) {
            addCriterion("lostarea <>", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaGreaterThan(String value) {
            addCriterion("lostarea >", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaGreaterThanOrEqualTo(String value) {
            addCriterion("lostarea >=", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaLessThan(String value) {
            addCriterion("lostarea <", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaLessThanOrEqualTo(String value) {
            addCriterion("lostarea <=", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaLike(String value) {
            addCriterion("lostarea like", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaNotLike(String value) {
            addCriterion("lostarea not like", value, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaIn(List<String> values) {
            addCriterion("lostarea in", values, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaNotIn(List<String> values) {
            addCriterion("lostarea not in", values, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaBetween(String value1, String value2) {
            addCriterion("lostarea between", value1, value2, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostareaNotBetween(String value1, String value2) {
            addCriterion("lostarea not between", value1, value2, "lostarea");
            return (Criteria) this;
        }

        public Criteria andLostpositionIsNull() {
            addCriterion("lostposition is null");
            return (Criteria) this;
        }

        public Criteria andLostpositionIsNotNull() {
            addCriterion("lostposition is not null");
            return (Criteria) this;
        }

        public Criteria andLostpositionEqualTo(String value) {
            addCriterion("lostposition =", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionNotEqualTo(String value) {
            addCriterion("lostposition <>", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionGreaterThan(String value) {
            addCriterion("lostposition >", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionGreaterThanOrEqualTo(String value) {
            addCriterion("lostposition >=", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionLessThan(String value) {
            addCriterion("lostposition <", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionLessThanOrEqualTo(String value) {
            addCriterion("lostposition <=", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionLike(String value) {
            addCriterion("lostposition like", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionNotLike(String value) {
            addCriterion("lostposition not like", value, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionIn(List<String> values) {
            addCriterion("lostposition in", values, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionNotIn(List<String> values) {
            addCriterion("lostposition not in", values, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionBetween(String value1, String value2) {
            addCriterion("lostposition between", value1, value2, "lostposition");
            return (Criteria) this;
        }

        public Criteria andLostpositionNotBetween(String value1, String value2) {
            addCriterion("lostposition not between", value1, value2, "lostposition");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}